{% extends "base.html" %}

{% block menuItems %}
  <div id="menuItemRight"> <a href="/?logout=1">logout</a> </div>
  <div id="menuItemRight"> <a href="/about">Hvad er zentienz?</a> </div>
{% endblock %}

{% block inHeader %}
  {% if confirm %}
    {{mapcode|safe}}
    <script type="text/JavaScript">
      function newInit() {
        init();
        load();
      }
      window.onload = newInit;
      window.onunload = GUnload;
    </script>
  {% endif %}
{% endblock %}

{% block content %}
   <div id="center">  
      <form id=address method="post">
        {% if confirm %}
          Er {{ location.street }}, {{ location.zipCode }} den korrekte adresse?<p>
          <div id="map" style="width: 760px; height: 460px"></div>
          <input id=confirmed name=confirmed hidden value='y'>
          <input id=lat name=lat hidden value='{{location.lat}}'>
          <input id=lng name=lng hidden value='{{location.lng}}'>
	{% else %}
	  Hvor bor du?
	  <p>
          <label for=street>Vej og nummer</label>
          <input id=street name=street required autofocus>
          <br>
          <label for=password>Postnummer</label>
          <input id=zip name=zip required>
        {% endif %}
        <div id="center">
          <button type=submit>Forts&aelig;t</button>
        </div>
      </form>
    </div>
{% endblock %}
